package edu.practice;

import java.util.Scanner;
class Grade{
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double[] a = new double[5];
        for (int i = 0; i < a.length; i++) {
            a[i] = scanner.nextDouble();
        }//输入数组
        for (int j = 0; j < a.length-1; j++) {
            for (int k = 0; k < a.length - 1-j; k++) {
                if (a[k] > a[k + 1])
                    a[k] = a[k];
                else {
                    double temp = a[k];
                    a[k] = a[k + 1];
                    a[k + 1] = temp;
                }
            }//比大小
        }
        for (int i = 0; i <a.length ; i++) {
            System.out.println(a[i]);
        }
    }
}